export interface Medicine {
    entercount: number;
    totalprice: number;
}

export interface MedicineItem {
    id: string;
    name: string;
    entercount: number;
}

export interface PageInfo {
    total: number;
    list: MedicineItem[];
    pageNum: number;
    pageSize: number;
    size: number;
    startRow: number;
    endRow: number;
    pages: number;
    prePage: number;
    nextPage: number;
    isFirstPage: boolean;
    isLastPage: boolean;
    hasPreviousPage: boolean;
    hasNextPage: boolean;
    navigatePages: number;
    navigatepageNums: number[];
    navigateFirstPage: number;
    navigateLastPage: number;
}

export interface RootObject {
    success: boolean;
    code: number;
    message: string;
    data: Medicine;
    pageInfo: PageInfo;
}


export interface HistoryItem {
    id: number;
    name: string;
    factory: string;
    specs: string;
    type: string;
    pack: string;
    price: number;
    medicineId: number;
    operate: string;
    operateTime: string;
    jobNumber: string;
    userName: string;
    entercount: number;
    totalprice: number;
    batchnumber: string;
    productdate: string;
    deaddate: string;
}

export interface HistoryPageInfo {
    total: number;
    list: HistoryItem[];
    pageNum: number;
    pageSize: number;
    size: number;
    startRow: number;
    endRow: number;
    pages: number;
    prePage: number;
    nextPage: number;
    isFirstPage: boolean;
    isLastPage: boolean;
    hasPreviousPage: boolean;
    hasNextPage: boolean;
    navigatePages: number;
    navigatepageNums: number[];
    navigateFirstPage: number;
    navigateLastPage: number;
}